<!--
 * @Description: 
 * @Author: charles
 * @Date: 2021-07-19 10:03:59
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2021-08-06 10:34:19
-->
<template>
  <!-- 底部 -->
    <div class="footer">
      <div class="address">
       {{address}}
      </div>
      <div class="footleft">

         <br>版权所有：山西农业大学
         <br>电话：0354-6287059
         <br>邮政编码：030801
         <br>地址：山西省晋中市太谷县

      </div>
      <div class="footmid">
         <img src="resources/images/erm.png">
      </div>
      <div class="footright">
        
         <br>© 2020 Shanxi Agricultural University
         <br>晋ICP备05000473号
         <br>晋公网安备14072602000114号
        
      </div>
    </div>
    <!-- /底部 -->
</template>
<script>
import { get } from '../../utils/request'
export default {
  data(){
    return {
      address:""
    }
  },
  methods:{
    loadAddress(){
      let url = '/index/findByKey'
      let param = {name:"address"};
      get(url,param).then(resp => {
        let data = resp.data;
        if(data){
          this.address =  data.val;
        }
      })
    }
  },
  created(){
    this.loadAddress();
  }
}
</script>

<style lang="scss" scoped>
 // 底部样式
.footer {
  font-family: "微软雅黑";
  color: #fff;
  background-color: #0b1b2b;
  height: 180px;
  width: 100%;
  margin: 0 auto;
  

  .footleft{
    
    width: 300px;
  float: left;
  margin-left: 350px;
  font-size: 18px;
  }
  .footmid{
    padding-top: 40px;
    padding-right: 30px;
    margin-right: 30px;
    margin:0 auto;
    width: 100px;
    height: 10px;
  }
  .footright{
  margin-bottom: 20px;
    margin-right: 330px;
  width: 350px;
  float: right;
  

  font-size: 16px;

  }
  
}
</style>